home *** CD-ROM | disk | FTP | other *** search
- 100 rem easy keys
- 110 rem by steve goldsmith
- 120 rem 1984
- 130 poke53280,14:poke53281,12:print"[147][144] easy keys "
- 140 print"type in the commands you want the functions keys to represent."
- 150 dimf$(8):tx=49408:open1,0:gosub280
- 160 fora=1to8:print"function "a":":al=1:nu=1:le=38:gosub60500
- 180 f$(a)=c$
- 190 print:print"auto return (y/n): ";
- 200 b=peek(203):ifb<>25andb<>39then200
- 210 ifb=25thenprint"y":f$(a)=f$(a)+chr$(13):goto230
- 220 print"n":f$(a)=f$(a)+chr$(0):goto230
- 230 print:next
- 240 print"[147]easy keys compiling information"
- 250 fora=1to8:hi=int(tx/256):lo=tx-hi*256:poke49152+(a-1)*2,lo
- 260 poke49153+(a-1)*2,hi:readb:forc=1tolen(f$(b))
- 270 poketx,asc(mid$(f$(b),c,1)):tx=tx+1:next:next:sys49168:new
- 280 fora=0to106:readb:poke49168+a,b:next:return
- 290 rem machine language program
- 300 data169,0,133,255,120,169,33,141,20,3,169,192,141,21,3,88,96,165,255,208,50
- 310 data165,197,201,3,144,4,201,7,144,3,76,49,234,173,141,2,240,7,165,197,24,105
- 320 data1,208,5,165,197,56,233,3,10,170,189,0,192,133,251,189,1,192,133,252,169
- 330 data0,133,254,169,1,133,255,164,254,177,251,240,11,201,13,208,14,141,119,2
- 340 data169,1,133,198,169,0,133,255,76,49,234,141,119,2,169,1,133,198,230,254
- 350 data76,49,234
- 360 rem function key evaluation
- 370 data7,1,3,5,8,2,4,6
- 60500 c$="":poke198,.:print"[164]";
- 60510 forc=1tole+1
- 60520 geta$:ifa$=""then60520
- 60530 ifa$=chr$(13)thenprint"[157] ":return
- 60540 ifa$=chr$(20)andc>1thenprint"[157][157] [157][157][164]";:c=c-1:c$=left$(c$,c-1):goto60520
- 60550 if(c=le+1)then60520
- 60560 if(nu)and((a$>="0")and(a$<="9"))then60595
- 60570 if(al)and((a$>=" "anda$<="/")or(a$>=":"anda$<="z"))then60595
- 60580 if(al)thenif(a$>="[193]"anda$<="[218]")then60595
- 60590 goto60520
- 60595 print"[157]"a$;:poke212,.:print"[164]";:c$=c$+a$:next
-